# $Id: PKGBUILD 79686 2012-11-11 05:31:16Z lcarlier $
# Maintainer : Laurent Carlier <lordheavym AT gmail DOT com>

pkgname=radeontool
pkgver=1.6.3
pkgrel=1
pkgdesc="Lowlevel tools to tweak register and dump state on radeon GPUs"
url="http://airlied.livejournal.com/"
arch=('i686' 'x86_64')
license=('ZLIB')
source=(http://people.freedesktop.org/~airlied/radeontool/${pkgname}-${pkgver}.tar.gz
	license.txt)
depends=('libpciaccess')
md5sums=('e4bd75da852840a02cb2290804abd717'
         'cc74a55d8e998ca9a2537a0ab78bc582')
         
build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  
  ./configure --prefix=/usr
  make
}

package () {
  cd ${srcdir}/${pkgname}-${pkgver}

  make DESTDIR="${pkgdir}" install
  install -D ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/radeontool/license.txt
}
